package com.zoe.app.controller;

import cn.hutool.core.date.DateUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zoe.Zhang
 * @date 2021/10/10
 * @description
 */
@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello() {
        System.out.println(DateUtil.today() + "Hello");
        return DateUtil.today() + "Hello";
    }

    @PostMapping("/post_hello")
    public String postHello() {
        System.out.println(DateUtil.today() + "Hello");
        return DateUtil.today() + "Hello";
    }

    @GetMapping("/hi")
    public String hi() {
        System.out.println(DateUtil.today() + "hi");
        return DateUtil.today() + "hi";
    }
}
